package org.come.xinyuan;

import com.tool.btn.FormsOnOffBtn;

import javax.swing.*;
import java.awt.*;

public class SkillMainPanel5 extends JPanel {
    public static CopyOfSkillTYCPanel5 copyOfSkillTYCPanel;
    private ImageIcon icon;
    private int typeBtn;

    public SkillMainPanel5() {
        this.setPreferredSize(new Dimension(901, 548));
        this.setOpaque(false);
        this.setLayout(null);
        FormsOnOffBtn offBtn = new FormsOnOffBtn("skin/8100226/button/1.png", 1, 688);
        offBtn.setBounds(864, 10, 25, 25);
        this.add(offBtn);
        copyOfSkillTYCPanel = new CopyOfSkillTYCPanel5();
        this.add(copyOfSkillTYCPanel);
    }

    @Override
    protected void paintComponent(Graphics g) {
        super.paintComponent(g);
        if (this.icon == null) {
            this.icon = new ImageIcon("inkImg/old/background/S293.png");
        }

        g.drawImage(this.icon.getImage(), 0, 0, 901, 548, this);
    }

    public int getTypeBtn() {
        return this.typeBtn;
    }

    public void setTypeBtn(int typeBtn) {
        this.typeBtn = typeBtn;
    }
}